<?php
namespace Common\Model;
use Think\Model;
class AdvinfoModel extends Model{
	
	
	protected $patchValidate=true;
	protected $_validate=array(
			array('imagename','/^\w+\.(jpg)|(jpeg)|(png)|(gif)$/','图片格式不正确'),
			array('url','/^\w+$/','请输入正确的URL格式'),
			array('typename','/^\d*$/','请选则所属分类格式'),
			array('height','/^\d[1-5000]$/','请输入1-5000内的整数'),
			array('width','/^\d[1-5000]$/','请输入1-5000内的整数'),
			array('odr','/^\d*$/','排序为整数格式'),
			array('isshow','/^\d*$/','请选则是否显示'),
	);

}

